package com.eportal.ORM;

/**
 * WtAccountInfoId entity. @author MyEclipse Persistence Tools
 */

public class WtAccountInfoId implements java.io.Serializable {

	// Fields

	private String termid;
	private String crtDate;
	private String goods;
	private String amt;

	// Constructors

	/** default constructor */
	public WtAccountInfoId() {
	}

	/** full constructor */
	public WtAccountInfoId(String termid, String crtDate, String goods,
			String amt) {
		this.termid = termid;
		this.crtDate = crtDate;
		this.goods = goods;
		this.amt = amt;
	}

	// Property accessors

	public String getTermid() {
		return this.termid;
	}

	public void setTermid(String termid) {
		this.termid = termid;
	}

	public String getCrtDate() {
		return this.crtDate;
	}

	public void setCrtDate(String crtDate) {
		this.crtDate = crtDate;
	}

	public String getGoods() {
		return this.goods;
	}

	public void setGoods(String goods) {
		this.goods = goods;
	}

	public String getAmt() {
		return this.amt;
	}

	public void setAmt(String amt) {
		this.amt = amt;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof WtAccountInfoId))
			return false;
		WtAccountInfoId castOther = (WtAccountInfoId) other;

		return ((this.getTermid() == castOther.getTermid()) || (this
				.getTermid() != null
				&& castOther.getTermid() != null && this.getTermid().equals(
				castOther.getTermid())))
				&& ((this.getCrtDate() == castOther.getCrtDate()) || (this
						.getCrtDate() != null
						&& castOther.getCrtDate() != null && this.getCrtDate()
						.equals(castOther.getCrtDate())))
				&& ((this.getGoods() == castOther.getGoods()) || (this
						.getGoods() != null
						&& castOther.getGoods() != null && this.getGoods()
						.equals(castOther.getGoods())))
				&& ((this.getAmt() == castOther.getAmt()) || (this.getAmt() != null
						&& castOther.getAmt() != null && this.getAmt().equals(
						castOther.getAmt())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getTermid() == null ? 0 : this.getTermid().hashCode());
		result = 37 * result
				+ (getCrtDate() == null ? 0 : this.getCrtDate().hashCode());
		result = 37 * result
				+ (getGoods() == null ? 0 : this.getGoods().hashCode());
		result = 37 * result
				+ (getAmt() == null ? 0 : this.getAmt().hashCode());
		return result;
	}

}